﻿using System.ComponentModel;
using System.Web.Script.Services;
using System.Web.Services;
using Module;
using Module.QuanTriHeThong.DanhMuc;

namespace HeThongSpa.Webservice.QuanTriHeThong.DanhMuc
{
    /// <summary>
    /// Summary description for wsDanhMucTaiKhoan
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [ScriptService]
    public class wsDanhMucTaiKhoan : WebService
    {
        private readonly DanhMucTaiKhoan _danhMucTaiKhoan = new DanhMucTaiKhoan();

        [WebMethod(EnableSession = true)]
        public string SelectByTaiKhoan(string taikhoan)
        {
            return JsonMethods.ToJsonString(_danhMucTaiKhoan.SelectByTaiKhoan(taikhoan));
        }
    }
}
